<?

set_include_path ("{$_SERVER["DOCUMENT_ROOT"]}:" .
		get_include_path ());
set_include_path ("{$_SERVER["DOCUMENT_ROOT"]}/include:" .
		get_include_path ());
set_include_path ("{$_SERVER["DOCUMENT_ROOT"]}/inventory_control:" .
		get_include_path ());
set_include_path ("{$_SERVER["DOCUMENT_ROOT"]}/inventory_control/include:" .
		get_include_path ());

require_once ("main.include.inc");

global $_OBJECT_IFACE;
global $_GLOBAL_DBH;
global $_OBJECT_IFACE_DISPLAY;
global $_OBJECT_IFACE_PANEL;
global $_IFACE_CONTROL_OBJECT;
global $_SET_TABBING;

$_IFACE_CONTROL_OBJECT = array ();

$_SET_TABBING = false;

$_OBJECT_IFACE_PANEL = _app_create_iface_panel ();
$_OBJECT_IFACE_DISPLAY->insert_container ($_OBJECT_IFACE_PANEL);


if (!$_REQUEST["fs_tab"] || $_REQUEST["fs_tab"] == "inv_ctl_suppliers") {

	if ($_REQUEST["fs_tab_option"] == "fs_inv_ctl_suppliers") {

		require_once ("fs_inv_ctl_suppliers.inc");
	} else require_once ("lc_inv_ctl_suppliers.inc");
} elseif ($_REQUEST["fs_tab"] == "inv_ctl_shipping_methods") {

	if ($_REQUEST["fs_tab_option"] == "fs_inv_ctl_shipping_methods") {

		require_once ("fs_inv_ctl_shipping_methods.inc");
	} else require_once ("lc_inv_ctl_shipping_methods.inc");
} elseif ($_REQUEST["fs_tab"] == "inv_ctl_purchase_orders") {

	if ($_REQUEST["fs_tab_option"] == "fs_inv_ctl_purchase_orders") {

		require_once ("fs_inv_ctl_purchase_orders.inc");
	} else require_once ("lc_inv_ctl_purchase_orders.inc");
}

if ($_SET_TABBING) require_once ("_headers/tc_inv_ctl_suppliers.inc");
else {
	foreach ($_IFACE_CONTROL_OBJECT as $control_object)
		$_OBJECT_IFACE_PANEL->insert_container ($control_object);
}

$_OBJECT_IFACE->show_container ();

?>
